package request

type Category struct {
	Name      string `form:"name" json:"name" binding:"required"`
	Pid       int32  `form:"pid" json:"pid"`
	SortOrder int32  `form:"sort_order" json:"sort_order"`
}

type CategoryList struct {
	Id        int32  `form:"id" json:"id"`
	Status    int32  `form:"status" json:"status"`
	Pid       int32  `form:"pid" json:"pid"`
	Name      string `form:"name" json:"name"`
	CreatedAt string `form:"created_at" json:"created_at"`
	Limit     int32  `form:"limit" json:"limit"`
	Page      int32  `form:"page" json:"page"`
}

type CategoryUpdate struct {
	Id        int32  `form:"id" json:"id" binding:"required"`
	Name      string `form:"name" json:"name" binding:"required"`
	Pid       int32  `form:"pid" json:"pid"`
	Status    int32  `form:"status" json:"status"`
	SortOrder int32  `form:"sort_order" json:"sort_order"`
}

type CategoryDel struct {
	Id int32 `form:"id" json:"id" binding:"required"`
}

type CategoryInfo struct {
	Id int32 `form:"id" json:"id" binding:"required"`
}
